SUM=1
lnpan_queue="/home/wwwroot/default/lnpan/lnpan_queue.php"
proc=`/bin/ps xaww | grep -v " grep" | grep "$lnpan_queue" |wc -l`
echo $proc
if [ "$proc" -lt "$SUM" ];then
        /usr/bin/php "$lnpan_queue" &
fi

SUM=2
lnpan_down="/home/wwwroot/default/lnpan/lnpan_down.php"
proc=`/bin/ps xaww | grep -v " grep" | grep "$lnpan_down" |wc -l`
echo $proc
if [ "$proc" -lt "$SUM" ];then
        /usr/bin/php "$lnpan_down" &
fi

SUM=2
lnpan_upload="/home/wwwroot/default/lnpan/lnpan_upload.php"
proc=`/bin/ps xaww | grep -v " grep" | grep "$lnpan_upload" |wc -l`
echo $proc
if [ "$proc" -lt "$SUM" ];then
        /usr/bin/php "$lnpan_upload" &
fi
